package com.heima.utils.threadlocal;

import com.heima.model.wemedia.pojos.WmUser;

/**
 * 自媒体当前线程
 */
public class WmThreadLocal {

    private  static final ThreadLocal<WmUser> WM_USER_THREAD_LOCAL=new ThreadLocal<>();

    public static final void setWmUser(WmUser wmUser){
        WM_USER_THREAD_LOCAL.set(wmUser);
    }

    public static final  WmUser getWmUser(){
       return WM_USER_THREAD_LOCAL.get();
    }

    public static final  void removeWmUser(){
        WM_USER_THREAD_LOCAL.remove();
    }
}
